package com.bestcem.xm.survey.mapper;

import com.bestcem.xm.component.mybatis.mapper.XmCommonMapper;
import com.bestcem.xm.survey.controller.vo.SurveyQuotaCheckItemVo;
import com.bestcem.xm.survey.entity.SurveyQuotaCheckItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author guita
 * @description 针对表【ds_survey_quotacheckitem】的数据库操作Mapper
 * @createDate 2023-01-09 15:15:37
 * @Entity com.bestcem.xm.survey.entity.SurveyQuotaCheckItem
 */
@Mapper
public interface SurveyQuotaCheckItemMapper extends XmCommonMapper<SurveyQuotaCheckItem> {
    List<SurveyQuotaCheckItemVo> getItemByParam(@Param("projectId") String projectId, @Param("quotaCheckValList") List<String> quotaCheckValList, @Param("quotaCondIds") List<String> quotaCondIds);

    List<Map<String, Object>> getCountByQuotaCheckitemId(@Param("checkitemIdList") List<String> checkitemIdList);

    //todo select for update 会有性能问题
    @Deprecated
    SurveyQuotaCheckItem getByIdForUpdate(@Param("id") String id);
}




